package test
{
	import flash.display.CapsStyle;
	import flash.display.GradientType;
	import flash.display.Graphics;
	import flash.display.JointStyle;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.geom.Matrix;
	
	public class LoadingTipTest extends Sprite
	{
		public var s:Sprite; 
		
		public function LoadingTipTest()
		{
			super();
			s = new Sprite();
			s.x = 200;
			s.y = 200;
			var g:Graphics = s.graphics;
			var matrix:Matrix = new Matrix();
			matrix.createGradientBox(200, 20, 0, -100, -100);
			var color:uint = 0x000000;
//			g.lineStyle(10, color, 1, false, "normal", CapsStyle.NONE);
			g.lineStyle(10);
			g.lineGradientStyle(GradientType.LINEAR, 
				[color, color],
				[1, 0.2], 
				[0, 255], matrix);
//			g.moveTo(0, 200);
//			g.lineTo(400, 200);
			g.drawCircle(0, 0, 100);
			g.moveTo(0, 0);
//			g.lineStyle(10, 0xFF0000);
//			g.lineTo(100, 0);			
			addChild(s);
			addEventListener(Event.ENTER_FRAME, onFrame);
		}
		
		public function onFrame(e:Event):void {
			s.rotation += 5;
		}

	}
}